From 9de56f7224140d1a4dac8d1a0183788d3707902f Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 29 Jan 2016 10:20:54 -0800 Subject: [PATCH] Fix a test on nightly Rust Relax an output assertion to just contains instead of exhaustively matching --- tests/test_cargo_bench.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_cargo_bench.rs b/tests/test_cargo_bench.rs index 32382b216..fe815d657 100644 --- a/tests/test_cargo_bench.rs +++ b/tests/test_cargo_bench.rs @@ -181,14 +181,14 @@ test!(cargo_bench_failing_test { execs().with_stdout("hello\n")); assert_that(p.cargo("bench"), - execs().with_stdout(&format!("\ + execs().with_stdout_contains(&format!("\ {} foo v0.5.0 ({}) {} target[..]release[..]foo-[..] running 1 test test bench_hello ... ", COMPILING, p.url(), RUNNING)) - .with_stderr("\ + .with_stderr_contains("\ thread '
' panicked at 'assertion failed: \ `(left == right)` (left: \ `\"hello\"`, right: `\"nope\"`)', src[..]foo.rs:14 -- 2.30.2